
public class Property extends Block {
	
	private Player owner;   // the type of owner
	private String name;
	private int price;
	private int rent0, rent1, rent2, rent3, rent4, rent5;
	private int propertyGroup;

	private int mortgage;
	private int numHouse;
	private int priceHouse;
	private int priceHotel;
	private int numberOfPropertiesInGroup;
	private boolean IsMortgaged; 
	private String propertyDeed;
	
	public Property(int blocknumber, String name_, int price_, int rnt0_, int rent1_, int rent2_ ,int rent3_, int rent4_, int rent5_, int propGrp, int mort, int nmHouse, int prceHouse, int prceHotel, Boolean ismort, String deed, int groupNum){
		super(blocknumber);
		this.owner = null;
		this.name = name_;
		this.price = price_;
		this.rent0 = rnt0_;
		this.rent1 = rent1_;
		this.rent2 = rent2_;
		this.rent3 = rent3_;
		this.rent4 = rent4_;
		this.rent5 = rent5_;
		this.propertyGroup = propGrp;
		this.mortgage = mort;
		this.numHouse = nmHouse;
		this.priceHouse = prceHouse;
		this.priceHotel = prceHotel;
		this.IsMortgaged = false;
		this.setPropertyDeed(deed);
	}
	
	public void setOwner(Player owner) {
		this.owner = owner;
	}
	public Player getOwner() {
		return owner;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getPrice() {
		return price;
	}

	public void setPropertyGroup(int propertyGroup) {
		this.propertyGroup = propertyGroup;
	}

	public int getPropertyGroup() {
		return propertyGroup;
	}

	public void setRent5(int rent5) {
		this.rent5 = rent5;
	}

	public int getRent5() {
		return rent5;
	}

	public void setRent4(int rent4) {
		this.rent4 = rent4;
	}

	public int getRent4() {
		return rent4;
	}

	public void setRent2(int rent2) {
		this.rent2 = rent2;
	}

	public int getRent2() {
		return rent2;
	}

	public void setRent1(int rent1) {
		this.rent1 = rent1;
	}

	public int getRent1() {
		return rent1;
	}

	public void setRent0(int rent0) {
		this.rent0 = rent0;
	}

	public int getRent0() {
		return rent0;
	}

	public void setMortgage(int mortgage) {
		this.mortgage = mortgage;
	}

	public int getMortgage() {
		return mortgage;
	}

	public void setRent3(int rent3) {
		this.rent3 = rent3;
	}

	public int getRent3() {
		return rent3;
	}

	public void setNumHouse(int numHouse) {
		this.numHouse = numHouse;
	}

	public int getNumHouse() {
		return numHouse;
	}

	public void setIsMortgaged(boolean isMortgaged) {
		IsMortgaged = isMortgaged;
	}

	
	public boolean isIsMortgaged() {
		return IsMortgaged;
	}

	public void setPriceHouse(int priceHouse) {
		this.priceHouse = priceHouse;
	}

	public int getPriceHouse() {
		return priceHouse;
	}

	public void setPropertyDeed(String propertyDeed) {
		this.propertyDeed = propertyDeed;
	}

	public String getPropertyDeed() {
		return propertyDeed;
	}

	public void setPriceHotel(int priceHotel) {
		this.priceHotel = priceHotel;
	}

	public int getPriceHotel() {
		return priceHotel;
	}

	public int getNumberOfPropertiesInGroup() {
		return numberOfPropertiesInGroup;
	}
	
}
